#!/usr/bin/env python3

import os, sys
import numpy as np

w_dir = 'weights'
root = 'w_os_6'

w = []

for ch in range(16):
    wdat = w_dir+'/'+root+'_'+str(ch+1)+'.txt'
    print('==> loading {}'.format(wdat))
    w_tmp = np.loadtxt(wdat)
    w.append(w_tmp)


w = np.array(w)
w = w.transpose()

np.savetxt('weights_opt_8pts_2023-10-29.txt', w, fmt = '%10.8f')
